package com.showgood.controller {
	import com.showgood.core.AbstractSimpleCommand;
	import com.showgood.model.LoginProxy;
	import com.showgood.model.PreloadProxy;
	import com.showgood.model.SocketProxy;
	import com.showgood.view.mediator.ApplicatonMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import spark.components.Application;
	
	/**
	 * ...
	 * @author bianpeng
	 */
	public class StartupCommand extends AbstractSimpleCommand {
		
		
		public function StartupCommand() {
			super();
		}
		
		override public function execute(notify:INotification):void {
			_logger.info('START UP COMMAND');
			
			var app:Application = notify.getBody() as Application;
			sangoFacade.registerMediatorByType(new ApplicatonMediator(app));
			
			// 先载入资源
			sangoFacade.registerProxyByType(new PreloadProxy());
		}
		
	}

}


